package edu.mall.http

object ApiAddress {

    /*
 * 登录
 * http://localhost:8085/sso/login?password=member123&username=member
 *
 * */
    const val Mall_Login="sso/login"

    /*
    * 获取当前会员的购物车列表
    * http://localhost:8085/cart/list
    * */

    const val Cart_List="cart/list"

    // 分页获取推荐商品11
    // http://localhost:8085/home/recommendProductList?pageNum=1&pageSize=12
    const val Recommended_Product_List="home/recommendProductList"
    //有pic的
//    const val Recommended_Product_List="home/newProductList"

    /*
    * http://localhost:8085/home/content
    * */
    const val Mall_Banner = "home/content"
    const val Product_Detail = "product/detail/"
//    const val Product_Detail = "home/newProductList"

    /*
  *
  * 以树形结构获取所有商品分类2
  * http://localhost:8085/product/categoryTreeList
  * */
    const val Product_Category = "product/categoryTreeList"
//    个人信息
    const val User_Info = "sso/info"


    //首页文章
    const val Article_List = "article/list/"




    /**
     * 首页文章列表
     */
    fun getArticleList(pageCount: Int): String {
        return "article/list/$pageCount/json"
    }
}
